﻿//-----------------------------------------------------------------------
// <copyright file="EntityBase.cs" company="SLWY Enterprises">
// * Copyright (C) 2017 四川商旅无忧科技有限公司 版权所有。
// * version : 1.0
// * author  : qinchaoyue
// * FileName: EntityBase.cs
// * history : created by qinchaoyue 2017-10-26 02:44:34
// </copyright>
//-----------------------------------------------------------------------

namespace Slwy.Data.Entity.Data
{
    using Slwy.Data.Entity.Interfaces;

    /// <summary>
    /// 基础数据类型
    /// </summary>
    /// <typeparam name="TKey">key</typeparam>
    public abstract class EntityBase<TKey> : IEntityBase<TKey>, IRecyclable
    {
        /// <summary>
        /// 基础数据key
        /// </summary>
        public TKey KeyID { get; set; }

        /// <summary>
        /// 设置或者获取 是否删除
        /// </summary>
        public bool IsDelete { get; set; }
    }
}
